# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-raven
_pkgname=raven
pkgver=6.10.0
pkgrel=2
pkgdesc="Python client for Sentry"
url="https://github.com/getsentry/raven-python"
arch="noarch"
license="BSD-3-Clause"
replaces="py-raven py2-raven" # for backwards compatibility
provides="py-raven=$pkgver-r$pkgrel py2-raven=$pkgver-r$pkgrel" # for backwards compatibility
depends="python3"
makedepends="py3-setuptools python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 setup.py check
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="37ca6d5953dc92b57b3bf4e2edb3947d41f33711d9babfc9eafb8712dc5923829f8810e5123e63749710aeecceb66e56bf8b5b60868f61d750704e20add3c747  raven-6.10.0.tar.gz"
